package backend.manager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import backend.dao.UserDao;
import backend.model.User;

@Service
public class UserManagerImpl implements UserManager {
	@Autowired
	private UserDao userDao;
	
	public User findUserById(int id) {
		return userDao.getById(id);
	}
 
	public User findUserByUsernameAndPassword(String username, String password) {
		return userDao.findByUsernameAndPassword(username, password);
	}
}
